package com.kis.pattern.mediator;

/**
 * Created by yks on 15-11-17.
 */
public class CPU extends Colleague{
    public CPU(Mediator mediator) {
        super(mediator);
    }
    private String videoData="";
    private String soundData="";

    public String getVideoData() {
        return videoData;
    }

    public String getSoundData() {
        return soundData;
    }
    public void executeData(String data){
        String[] datas = data.split(",");
        this.videoData=datas[0];
        this.soundData=datas[1];
        this.getMediator().changed(this);
    }
}
